#ifndef MYBUFFER_H
#define MYBUFFER_H

class MyBuffer // It's awful, I know. I'm working on it
{
  public:
    MyBuffer(void *buf, unsigned long size);
    MyBuffer(){}
    void Read(void *dst, unsigned long numBytes);
    unsigned long Write(void *src, unsigned long numBytes);
    unsigned long Write(int src);
	unsigned long Write(unsigned char src);
    unsigned long Write(bool src);
    void SetBuffer(void *buf, unsigned long size);
    void *GetCurrAddr(){return currAddr;}
    
  private:
    unsigned char *startAddr;
    unsigned char *endAddr;
    unsigned char *currAddr;
};

#endif // MYBUFFER_H
